﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;

namespace _2112A_2_MES._wangweihao
{
    /// <summary>
    /// 工装夹具清单表
    /// </summary>
    public class Tool : Entity<int>
    {

        /// <summary>
        /// 工装夹具编码
        /// </summary>
        [StringLength(64)]
        public string? ToolCode { get; set; }

        /// <summary>
        /// 工装夹具名称
        /// </summary>
        [StringLength(255)]
        public string? ToolName { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        [StringLength(255)]
        public string? Brand { get; set; }

        /// <summary>
        /// 型号
        /// </summary>
        [StringLength(255)]
        public string? Spec { get; set; }

        /// <summary>
        /// 工装夹具类型ID
        /// </summary>
        public int? ToolTypeId { get; set; }

        /// <summary>
        /// 工装夹具类型编码
        /// </summary>
        [StringLength(64)]
        public string? ToolTypeCode { get; set; }

        /// <summary>
        /// 工装夹具类型名称
        /// </summary>
        [StringLength(255)]
        public string? ToolTypeName { get; set; }

        /// <summary>
        /// 是否单独编码
        /// </summary>
        [StringLength(1)]
        public string? CodeFlag { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int? Quantity { get; set; }

        /// <summary>
        /// 可用数量
        /// </summary>
        public int? QuantityAvail { get; set; }

        /// <summary>
        /// 保养维护方式
        /// </summary>
        [StringLength(20)]
        public string? MaintainType { get; set; }

        /// <summary>
        /// 下一次保养周期
        /// </summary>
        public int? NextMaintenPeriod { get; set; }

        /// <summary>
        /// 下一次保养日期
        /// </summary>
        public DateTime? NextMaintenDate { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        [StringLength(64)]
        public string? Status { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        [StringLength(64)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        [StringLength(64)]
        public string? UpdateBy { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}
